export class Rectangle{
  public width:number
  public length:number
  constructor(width:number,length:number) {
    this.width=width
    this.length=length
  }
}
export function area (rec:Rectangle ):number{
  return rec.width*rec.length
}